package org.example.chain.service.impl;

import org.example.chain.service.Validation;
import org.springframework.util.StringUtils;

public class NotBlankValidation implements Validation {
    @Override
    public void valid(String param) throws IllegalArgumentException {
        if (!StringUtils.hasText(param)) {
            throw new IllegalArgumentException("参数为空!");
        }

    }
}
